package com.humngyang.com.hmy.study.springtest.textAop;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class HmyAspect {



    @Pointcut("execution(* com.humngyang.com.hmy.service.springtest.textAop.*.*(..))")
    public void pointcut(){}

    @Before("pointcut()")
    public void advice(){
        System.out.println("before aop");
    }

}
